<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="信息栏目" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function doSave(){
		document.getElementById("buttonDiv").style.display="none";
		document.getElementById("waitDiv").style.display="";
		frm.submit();
	}
	function doCancel(){
		parent.parent.ClosePop();
	}
	function showMe(){
		showFormErrorMsg();
	}
</script>
</head>
<body oncontextmenu="return false" scroll="no" onload="showMe();"  class="sheet modal-dialog" style=" padding-top:15px;">
<div class="sheet-main" id="bodyDiv" style="width:275px;">
	<form name="frm" method="post">
	  <div class="sheet-list" style="width:100%">
	    <div class="modal-main search-business">
	    	<div style="width:100%;">
				<c:if test="${id==null || id==''}"><c:set var="pageTopTitle" value="新增栏目" /></c:if>
				<c:if test="${id!=null && id!=''}"><c:set var="pageTopTitle" value="编辑栏目" /></c:if>
				<%@ include file="../inc/PageTop.jsp"%> 
				<table border="0" cellspacing="1" cellpadding="1" align="center" class="table-a">
					<tr>
						<th>名称：</th>
					  	<td>
							<spring:bind path="command.columnName">
							<input type="text" maxlength="15" onKeyUp="goNextInput('sequenceCode');" id="${status.expression}" name="${status.expression}" value="${status.value}">
					          <script language="javascript">
					          	setFormErrorMsg('<c:out value="${status.errorMessage}" />',1,'columnName');
					          </script>
							</spring:bind>
					  	</td>
				    </tr>	
					<tr>
						<th>序号：</th>
					  	<td>
				  			<spring:bind path="command.sequenceCode">
							<input type="text" maxlength="15" onKeyUp="goNextInput('');" id="${status.expression}" name="${status.expression}" value="${status.value}">
							<c:if test="${status.errorCode=='typeMismatch'}">
					          <script language="javascript">
					          	setFormErrorMsg('序号只能输入整数',2,'sequenceCode');
					          </script>
					      	</c:if>
							</spring:bind>
					  	</td>
					</tr>
				</table>
			</div>
	  	</div>
	  </div>
		<div class="modal-buttom" id="buttonDiv">
			<input type="button" class="buttom-a" value=" 保 存 " onClick="doSave();">
			<input type="button" class="buttom-a" value=" 取 消 " onClick="doCancel();">
		</div>
		<div class="modal-buttom" id="waitDiv" style="display:none">
			<span style="color:#ffffff">请稍候...</span>
		</div>
	</form>
</div>		
</body>
</html>